package com.tencent.welink.api.account;

import com.tencent.welink.api.OpenApiTokenChange;
import com.tencent.welink.api.base.WelinkOpenApi;
import com.tencent.welink.config.BussinessConfig;
import com.tencent.welink.util.CrontabUtil;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.Map;

/**
 * Created by junchihe on 2020/6/4.
 * desc: 获取项目下的用户列表（告警处理人角色）
 */
public class ProcessorList extends WelinkOpenApi {

    @Override
    public void displayResult(String result) {

    }
    private static final Logger log = LogManager.getLogger(ProcessorList.class);
    public ProcessorList() {
        super("/common/processor/processorList",true);
    }

    public static void main(String[] args) {
        new BussinessConfig();
        CrontabUtil.addTaskInRate(new OpenApiTokenChange(), BussinessConfig.loginDurationMinutes,true);
        ProcessorList processorList =   new ProcessorList();
        Map<String,Object> map = processorList.getExtendsPara();
        map.put("page",1);
        map.put("num",100);
        processorList.DoHttp();
        CrontabUtil.shutdown();
    }
}
